package com.good.domain.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 大钊
 * @since 2022-09-22
 */
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("8位唯一用户号")
    private Integer card;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("出生日期")
    private LocalDateTime birthday;

    @ApiModelProperty("头像")
    private String pic;

    @ApiModelProperty("等级")
    private Integer grade;

    @ApiModelProperty("svg头像")
    private String svgpic;

    @ApiModelProperty("手机号")
    private Long mobile;

    @ApiModelProperty("邮箱账号")
    private String email;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("城市")
    private Integer city;

    @ApiModelProperty("省份")
    private Integer province;

    @ApiModelProperty("登录ip")
    private Long ip;

    @ApiModelProperty("登录错误次数")
    private Integer loginError;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("维度")
    private BigDecimal latitude;

    @ApiModelProperty("性别 0男 1女")
    private Integer sex;

    @ApiModelProperty("粉丝数")
    private Long follow;

    @ApiModelProperty("关注数")
    private Long concerns;

    @ApiModelProperty("是否在线")
    private Boolean online;

    @ApiModelProperty("个人中心背景图")
    private String backImage;

    @ApiModelProperty("实名认证 0:未认证  1:已认证 2:审核中 3:已拒绝 ")
    private Integer authentication;

    @ApiModelProperty("0:正常 1:封禁")
    private Integer state;

    @ApiModelProperty("微信公众号openid")
    private String openid;

    @ApiModelProperty("0:安卓 1:ios")
    private Integer registerSource;

    @ApiModelProperty("1正常用户 2测试账号")
    private Integer identity;

    @ApiModelProperty("注册时间")
    private LocalDateTime insertTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除")
    private Integer deleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getCard() {
        return card;
    }

    public void setCard(Integer card) {
        this.card = card;
    }
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
    public LocalDateTime getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDateTime birthday) {
        this.birthday = birthday;
    }
    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }
    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }
    public String getSvgpic() {
        return svgpic;
    }

    public void setSvgpic(String svgpic) {
        this.svgpic = svgpic;
    }
    public Long getMobile() {
        return mobile;
    }

    public void setMobile(Long mobile) {
        this.mobile = mobile;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }
    public Integer getProvince() {
        return province;
    }

    public void setProvince(Integer province) {
        this.province = province;
    }
    public Long getIp() {
        return ip;
    }

    public void setIp(Long ip) {
        this.ip = ip;
    }
    public Integer getLoginError() {
        return loginError;
    }

    public void setLoginError(Integer loginError) {
        this.loginError = loginError;
    }
    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }
    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }
    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
    public Long getFollow() {
        return follow;
    }

    public void setFollow(Long follow) {
        this.follow = follow;
    }
    public Long getConcerns() {
        return concerns;
    }

    public void setConcerns(Long concerns) {
        this.concerns = concerns;
    }
    public Boolean getOnline() {
        return online;
    }

    public void setOnline(Boolean online) {
        this.online = online;
    }
    public String getBackImage() {
        return backImage;
    }

    public void setBackImage(String backImage) {
        this.backImage = backImage;
    }
    public Integer getAuthentication() {
        return authentication;
    }

    public void setAuthentication(Integer authentication) {
        this.authentication = authentication;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
    public Integer getRegisterSource() {
        return registerSource;
    }

    public void setRegisterSource(Integer registerSource) {
        this.registerSource = registerSource;
    }
    public Integer getIdentity() {
        return identity;
    }

    public void setIdentity(Integer identity) {
        this.identity = identity;
    }
    public LocalDateTime getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(LocalDateTime insertTime) {
        this.insertTime = insertTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "User{" +
            "id=" + id +
            ", card=" + card +
            ", nickName=" + nickName +
            ", birthday=" + birthday +
            ", pic=" + pic +
            ", grade=" + grade +
            ", svgpic=" + svgpic +
            ", mobile=" + mobile +
            ", email=" + email +
            ", password=" + password +
            ", address=" + address +
            ", city=" + city +
            ", province=" + province +
            ", ip=" + ip +
            ", loginError=" + loginError +
            ", longitude=" + longitude +
            ", latitude=" + latitude +
            ", sex=" + sex +
            ", follow=" + follow +
            ", concerns=" + concerns +
            ", online=" + online +
            ", backImage=" + backImage +
            ", authentication=" + authentication +
            ", state=" + state +
            ", openid=" + openid +
            ", registerSource=" + registerSource +
            ", identity=" + identity +
            ", insertTime=" + insertTime +
            ", updateTime=" + updateTime +
            ", deleted=" + deleted +
        "}";
    }
}
